package com.ply.flashsalessystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ply.flashsalessystem.entity.pojo.ReturnOfGoodsDetails;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ply.flashsalessystem.entity.vo.user.ReturnOrderVo;
import com.ply.flashsalessystem.entity.wrapper.WrapperOrder;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XiaoPan
 * @since 2022-03-23
 */
public interface ReturnOfGoodsDetailsService extends IService<ReturnOfGoodsDetails> {

    /**
     * 同意退货请求
     * @param rogDId 退货详情id
     */
    boolean agreeReturnOrder(Integer rogDId);

    /**
     * 拒绝 退货请求
     * @param rogDId 退货详情id
     */
    boolean disagreeReturnOrder(Integer rogDId);


    Page<ReturnOrderVo> queryReturn(Integer current, Integer limit, WrapperOrder wrapperOrder);

    Page<ReturnOrderVo> queryReOrderDetailsByRodId(Integer current, Integer limit, Integer roId);


    /**
     * 取消 订单
     */
    void cancelReturnOrder(Integer roId);
}
